package view;

import java.awt.Rectangle;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.JRadioButton;
import javax.swing.JCheckBox;

public class FramePrincipal extends JFrame {

	private static final long serialVersionUID = 1L;
	private JMenuBar jJMenuBar = null;
	private JMenu menuArquivo = null;
	private JMenuItem menuItemSalvar = null;
	private JMenuItem menuItemCarregar = null;
	private JPanel jContentPane = null;
	private JLabel jLabel = null;
	private JLabel jLabel1 = null;
	private JLabel jLabel2 = null;
	private JLabel jLabel3 = null;
	private JLabel jLabel4 = null;
	private JLabel jLabel5 = null;
	private JLabel jLabel6 = null;
	private JLabel jLabelTelefone = null;
	private JLabel jLabelProcedencia = null;
	private JCheckBox jCheckBoxAcompanhado = null;
	private JLabel jLabelAcompanhado = null;
	private JLabel jLabelComorbidade = null;
	private JLabel jLabelEncaminhadoUTI = null;
	private JLabel jLabelTratamento = null;
	private JLabel jLabelObservações = null;
	private JLabel jLabelMetodo = null;
	private JLabel jLabelQuantidade = null;
	private JLabel jLabelLocal = null;
	private JLabel jLabelUnidade = null;
	private JTextField jTextFieldNome = null;
	private JTextField jTextFieldNacimento = null;
	private JTextField jTextFieldProfissao = null;
	private JRadioButton jRadioButtonSexo = null;
	private JTextField jTextFieldTelefone = null;
	private JTextField jTextFieldDataEntrada = null;
	private JTextField jTextFieldDataSaida = null;
	private JTextField jTextFieldProntuario = null;
	private JTextField jTextFieldProcedencia = null;
	private JTextField jTextFieldAcompanhante = null;
	private JTextField jTextFieldTratamento = null;
	private JRadioButton jRadioButtonEncaminhadoUTI = null;
	private JTextField jTextFieldMetodo = null;
	private JTextField jTextFieldObs = null;
	/**
	 * This is the default constructor
	 */
	public FramePrincipal() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(640, 400);
		this.setContentPane(getJContentPane());
		this.setJMenuBar(getJJMenuBar());
		this.setTitle("Pravida");
	}

	/**
	 * This method initializes jJMenuBar
	 * 
	 * @return javax.swing.JMenuBar
	 */
	private JMenuBar getJJMenuBar() {
		if (jJMenuBar == null) {
			jJMenuBar = new JMenuBar();
			jJMenuBar.add(getMenuArquivo());
		}
		return jJMenuBar;
	}

	/**
	 * This method initializes jMenu
	 * 
	 * @return javax.swing.JMenu
	 */
	private JMenu getMenuArquivo() {
		if (menuArquivo == null) {
			menuArquivo = new JMenu();
			menuArquivo.setText("Arquivo");
			menuArquivo.add(getMenuItemSalvar());
			menuArquivo.add(getMenuItemCarregar());
		}
		return menuArquivo;
	}

	/**
	 * This method initializes jMenuItem
	 * 
	 * @return javax.swing.JMenuItem
	 */
	private JMenuItem getMenuItemSalvar() {
		if (menuItemSalvar == null) {
			menuItemSalvar = new JMenuItem();
			menuItemSalvar.setText("Salvar");
		}
		return menuItemSalvar;
	}

	/**
	 * This method initializes jMenuItem1
	 * 
	 * @return javax.swing.JMenuItem
	 */
	private JMenuItem getMenuItemCarregar() {
		if (menuItemCarregar == null) {
			menuItemCarregar = new JMenuItem();
			menuItemCarregar.setText("Carregar");
		}
		return menuItemCarregar;
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			jLabelUnidade = new JLabel();
			jLabelUnidade.setBounds(new Rectangle(241, 302, 38, 16));
			jLabelUnidade.setText("Unidade");
			jLabelLocal = new JLabel();
			jLabelLocal.setBounds(new Rectangle(295, 308, 38, 16));
			jLabelLocal.setText("Local");
			jLabelQuantidade = new JLabel();
			jLabelQuantidade.setBounds(new Rectangle(197, 301, 38, 16));
			jLabelQuantidade.setText("Quantidade");
			jLabelMetodo = new JLabel();
			jLabelMetodo.setBounds(new Rectangle(100, 287, 38, 16));
			jLabelMetodo.setText("Método");
			jLabelObservações = new JLabel();
			jLabelObservações.setBounds(new Rectangle(438, 298, 108, 16));
			jLabelObservações.setText("Observações");
			jLabelTratamento = new JLabel();
			jLabelTratamento.setBounds(new Rectangle(328, 227, 38, 16));
			jLabelTratamento.setText("Tratamento");
			jLabelEncaminhadoUTI = new JLabel();
			jLabelEncaminhadoUTI.setBounds(new Rectangle(185, 243, 38, 16));
			jLabelEncaminhadoUTI.setText("Encaminhado para UTI");
			jLabelComorbidade = new JLabel();
			jLabelComorbidade.setBounds(new Rectangle(9, 229, 85, 32));
			jLabelComorbidade.setText("Comorbidade");
			jLabelAcompanhado = new JLabel();
			jLabelAcompanhado.setBounds(new Rectangle(239, 174, 38, 16));
			jLabelAcompanhado.setText("Acompanhado");
			jLabelProcedencia = new JLabel();
			jLabelProcedencia.setBounds(new Rectangle(278, 118, 38, 16));
			jLabelProcedencia.setText("Procedência:");
			jLabelTelefone = new JLabel();
			jLabelTelefone.setBounds(new Rectangle(11, 164, 71, 17));
			jLabelTelefone.setText("Telefone:");
			jLabel6 = new JLabel();
			jLabel6.setBounds(new Rectangle(7, 115, 81, 14));
			jLabel6.setText("Profissão:");
			jLabel5 = new JLabel();
			jLabel5.setBounds(new Rectangle(10, 142, 43, 15));
			jLabel5.setText("Sexo:");
			jLabel4 = new JLabel();
			jLabel4.setBounds(new Rectangle(272, 76, 78, 15));
			jLabel4.setText("Prontuário:");
			jLabel3 = new JLabel();
			jLabel3.setBounds(new Rectangle(269, 45, 91, 15));
			jLabel3.setText("Data Saída:");
			jLabel2 = new JLabel();
			jLabel2.setText("Data Nacimento");
			jLabel2.setBounds(new Rectangle(1, 82, 113, 15));
			jLabel1 = new JLabel();
			jLabel1.setText("Nome:");
			jLabel1.setBounds(new Rectangle(11, 56, 45, 15));
			jLabel = new JLabel();
			jLabel.setText("Data Entrata:");
			jLabel.setBounds(new Rectangle(269, 27, 96, 15));
			jContentPane = new JPanel();
			jContentPane.setLayout(null);
			jContentPane.add(jLabel, null);
			jContentPane.add(jLabel1, null);
			jContentPane.add(jLabel2, null);
			jContentPane.add(jLabel3, null);
			jContentPane.add(jLabel4, null);
			jContentPane.add(jLabel5, null);
			jContentPane.add(jLabel6, null);
			jContentPane.add(jLabelTelefone, null);
			jContentPane.add(jLabelProcedencia, null);
			jContentPane.add(getJCheckBoxAcompanhado(), null);
			jContentPane.add(jLabelAcompanhado, null);
			jContentPane.add(jLabelComorbidade, null);
			jContentPane.add(jLabelEncaminhadoUTI, null);
			jContentPane.add(jLabelTratamento, null);
			jContentPane.add(jLabelObservações, null);
			jContentPane.add(jLabelMetodo, null);
			jContentPane.add(jLabelQuantidade, null);
			jContentPane.add(jLabelLocal, null);
			jContentPane.add(jLabelUnidade, null);
			jContentPane.add(getJTextFieldNome(), null);
			jContentPane.add(getJTextFieldNacimento(), null);
			jContentPane.add(getJTextFieldProfissao(), null);
			jContentPane.add(getJRadioButtonSexo(), null);
			jContentPane.add(getJTextFieldTelefone(), null);
			jContentPane.add(getJTextFieldDataEntrada(), null);
			jContentPane.add(getJTextFieldDataSaida(), null);
			jContentPane.add(getJTextFieldProntuario(), null);
			jContentPane.add(getJTextFieldProcedencia(), null);
			jContentPane.add(getJTextFieldAcompanhante(), null);
			jContentPane.add(getJTextFieldTratamento(), null);
			jContentPane.add(getJRadioButtonEncaminhadoUTI(), null);
			jContentPane.add(getJTextFieldMetodo(), null);
			jContentPane.add(getJTextFieldObs(), null);
		}
		return jContentPane;
	}

	/**
	 * This method initializes jCheckBoxAcompanhado	
	 * 	
	 * @return javax.swing.JCheckBox	
	 */
	private JCheckBox getJCheckBoxAcompanhado() {
		if (jCheckBoxAcompanhado == null) {
			jCheckBoxAcompanhado = new JCheckBox();
			jCheckBoxAcompanhado.setBounds(new Rectangle(282, 168, 21, 21));
		}
		return jCheckBoxAcompanhado;
	}

	/**
	 * This method initializes jTextFieldNome	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldNome() {
		if (jTextFieldNome == null) {
			jTextFieldNome = new JTextField();
			jTextFieldNome.setBounds(new Rectangle(76, 55, 10, 20));
		}
		return jTextFieldNome;
	}

	/**
	 * This method initializes jTextFieldNacimento	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldNacimento() {
		if (jTextFieldNacimento == null) {
			jTextFieldNacimento = new JTextField();
			jTextFieldNacimento.setBounds(new Rectangle(126, 85, 10, 20));
		}
		return jTextFieldNacimento;
	}

	/**
	 * This method initializes jTextFieldProfissao	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldProfissao() {
		if (jTextFieldProfissao == null) {
			jTextFieldProfissao = new JTextField();
			jTextFieldProfissao.setBounds(new Rectangle(105, 117, 10, 20));
		}
		return jTextFieldProfissao;
	}

	/**
	 * This method initializes jRadioButtonSexo	
	 * 	
	 * @return javax.swing.JRadioButton	
	 */
	private JRadioButton getJRadioButtonSexo() {
		if (jRadioButtonSexo == null) {
			jRadioButtonSexo = new JRadioButton();
			jRadioButtonSexo.setBounds(new Rectangle(79, 141, 21, 21));
		}
		return jRadioButtonSexo;
	}

	/**
	 * This method initializes jTextFieldTelefone	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldTelefone() {
		if (jTextFieldTelefone == null) {
			jTextFieldTelefone = new JTextField();
			jTextFieldTelefone.setBounds(new Rectangle(89, 165, 10, 20));
		}
		return jTextFieldTelefone;
	}

	/**
	 * This method initializes jTextFieldDataEntrada	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldDataEntrada() {
		if (jTextFieldDataEntrada == null) {
			jTextFieldDataEntrada = new JTextField();
			jTextFieldDataEntrada.setBounds(new Rectangle(379, 30, 10, 20));
		}
		return jTextFieldDataEntrada;
	}

	/**
	 * This method initializes jTextFieldDataSaida	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldDataSaida() {
		if (jTextFieldDataSaida == null) {
			jTextFieldDataSaida = new JTextField();
			jTextFieldDataSaida.setBounds(new Rectangle(377, 51, 10, 20));
		}
		return jTextFieldDataSaida;
	}

	/**
	 * This method initializes jTextFieldProntuario	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldProntuario() {
		if (jTextFieldProntuario == null) {
			jTextFieldProntuario = new JTextField();
			jTextFieldProntuario.setBounds(new Rectangle(368, 80, 10, 20));
		}
		return jTextFieldProntuario;
	}

	/**
	 * This method initializes jTextFieldProcedencia	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldProcedencia() {
		if (jTextFieldProcedencia == null) {
			jTextFieldProcedencia = new JTextField();
			jTextFieldProcedencia.setBounds(new Rectangle(348, 119, 10, 20));
		}
		return jTextFieldProcedencia;
	}

	/**
	 * This method initializes jTextFieldAcompanhante	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldAcompanhante() {
		if (jTextFieldAcompanhante == null) {
			jTextFieldAcompanhante = new JTextField();
			jTextFieldAcompanhante.setBounds(new Rectangle(326, 175, 10, 20));
		}
		return jTextFieldAcompanhante;
	}

	/**
	 * This method initializes jTextFieldTratamento	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldTratamento() {
		if (jTextFieldTratamento == null) {
			jTextFieldTratamento = new JTextField();
			jTextFieldTratamento.setBounds(new Rectangle(387, 228, 10, 20));
		}
		return jTextFieldTratamento;
	}

	/**
	 * This method initializes jRadioButtonEncaminhadoUTI	
	 * 	
	 * @return javax.swing.JRadioButton	
	 */
	private JRadioButton getJRadioButtonEncaminhadoUTI() {
		if (jRadioButtonEncaminhadoUTI == null) {
			jRadioButtonEncaminhadoUTI = new JRadioButton();
			jRadioButtonEncaminhadoUTI.setBounds(new Rectangle(241, 241, 21, 21));
		}
		return jRadioButtonEncaminhadoUTI;
	}

	/**
	 * This method initializes jTextFieldMetodo	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldMetodo() {
		if (jTextFieldMetodo == null) {
			jTextFieldMetodo = new JTextField();
			jTextFieldMetodo.setBounds(new Rectangle(148, 290, 10, 20));
		}
		return jTextFieldMetodo;
	}

	/**
	 * This method initializes jTextFieldObs	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldObs() {
		if (jTextFieldObs == null) {
			jTextFieldObs = new JTextField();
			jTextFieldObs.setBounds(new Rectangle(558, 297, 10, 20));
		}
		return jTextFieldObs;
	}

}
